package com.shuyu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(description = "用户三方关系")
@TableName("tbl_customer_wx")
public class CustomerWx implements Serializable {
    private static final long serialVersionUID = 830861247172221236L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "微信授权unionId")
    private String unionId;
    @ApiModelProperty(value = "微信授权openId")
    private String openId;
    @ApiModelProperty(value = "微信昵称")
    private String nickname;
    @ApiModelProperty(value = "用户性别，1(0)为男性，2(1)为女性")
    private Integer sex;
    @ApiModelProperty(value = "用户个人资料填写的省份")
    private String province;
    @ApiModelProperty(value = "用户个人资料填写的城市")
    private String city;
    @ApiModelProperty(value = "国家，如中国为CN")
    private String country;
    @ApiModelProperty(value = "用户头像，")
    private String headimgurl;

    private Date createTime;
    private Date modifiedTime;

    public CustomerWx() {
    }

    public CustomerWx(String unionId, String openId, String nickname, Integer sex, String province, String city, String country, String headimgurl, Date createTime) {
        this.unionId = unionId;
        this.openId = openId;
        this.nickname = nickname;
        this.sex = sex;
        this.province = province;
        this.city = city;
        this.country = country;
        this.headimgurl = headimgurl;
        this.createTime = createTime;
    }
}
